package interpreter;

/**
 * 加法操作
 */
public class AddExp extends AbstractNonTerminalExp{


    public AddExp(IExpression leftExp, IExpression rightExp) {
        super(leftExp, rightExp);
    }

    //解释
    @Override
    public int interpret() {
        return this.leftExp.interpret() + this.rightExp.interpret();
    }
}
